package com.yfp.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.client.domain.DeviceCurrentComboStock;
import com.yfp.client.domain.vo.ComboListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @description 针对表【device_current_combo_stock】的数据库操作Mapper
 * @createDate 2024-06-05 13:47:14
 * @Entity com.yfp.domain.com.yfp.client.DeviceCurrentComboStock
 */
public interface DeviceCurrentComboStockMapper extends BaseMapper<DeviceCurrentComboStock> {

    List<ComboListVO> selectAll(String machineId);

    List<DeviceCurrentComboStock> listByPackageIdsAndMachineId(@Param("packageIds") List<String> packageIds, @Param("machineId") String machineId);

    /**
     * 根据机器id查询套餐库存
     *
     * @param machineId
     * @return
     */
    List<DeviceCurrentComboStock> listByMachineId(Long machineId);
}




